<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>


<script>

    function foo([x,y]){
         return x*y;
    }
    console.log(foo([3,5]));

</script>

</body>
</html>